package com.sg.controller.bff;

import com.sg.service.biz.bff.NetDiskTargetContentService;
import com.sg.dto.biz.bff.req.*;
import com.sg.dto.biz.bff.res.*;
import com.sg.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Api(value = "NetDiskTargetContent", tags = {"NetDiskTargetContent"})
@RestController
// @RequestMapping("/oms/netDiskTargetContent/")
public class NetDiskTargetContentController {

    @Autowired
    NetDiskTargetContentService netDiskTargetContentService;

    /**
     * B3查询网盘评价树列表(管理)
     * gen by moon at 3/27/2024, 10:56:34 PM
     */
    @PostMapping("/oms/mgt/netDiskTargetContent/queryNetDiskEvaTreeList")
    @ApiOperation(value = "B3查询网盘评价树列表(管理)", response = OkrResult.class)
    public OkrResult<BffQueryNetDiskEvaTreeListRespDto> queryNetDiskEvaTreeList(@RequestBody(required = false) @Validated BffQueryNetDiskEvaTreeListReqDto reqDTO) {
        return OkrResult.success(netDiskTargetContentService.queryNetDiskEvaTreeList(reqDTO));
    }

    /**
     * B3查询网盘树节点下级列表(管理)
     * gen by moon at 5/11/2024, 11:58:08 PM
     */
    @PostMapping("/oms/mgt/netDiskTargetContent/queryNetDiskTreeSubordinateList")
    @ApiOperation(value = "B3查询网盘树节点下级列表(管理)", response = OkrResult.class)
    public OkrResult<BffQueryNetDiskTreeSubordinateListRespDto> queryNetDiskTreeSubordinateList(@RequestBody(required = false) @Validated BffQueryNetDiskTreeSubordinateListReqDto reqDTO) {
        return OkrResult.success(netDiskTargetContentService.queryNetDiskTreeSubordinateList(reqDTO));
    }
}
